<template>
  <div>
    <div class="module user_img">
      <router-link tag="div" class="img_grp" to="/set">
        <img :src="userData.user_img" alt="">
      </router-link>
      <p>{{userData.user_name}}</p>

      <router-link tag="div" class="set" to="/set">
        <span class="iconfont icon-set-icon"></span>
      </router-link>
    </div>
    <router-link tag="div" class="module user_list to_myhome" to="/myPage">
      <span class="iconfont icon-mypage-icon"></span>
      <span>我的主页</span>
      <span class="iconfont icon-getmore-icon"></span>
    </router-link>
    <!-- <router-link tag="div" class="user_list " to="/msg_center">
       <span class="iconfont icon-newscenter"></span>
       <span>消息中心</span>
       <span class="iconfont icon-getmore-icon"></span>
       <span class="new_num">35</span>
     </router-link>-->
    <router-link tag="div" class="user_list " to="/my_test">
      <span class="iconfont icon-mytest-icon"></span>
      <span>我的测试</span>
      <span class="iconfont icon-getmore-icon"></span>
    </router-link>
    <router-link tag="div" class="user_list " to="/follow_list">
      <span class="iconfont icon-follow"></span>
      <span>我的关注</span>
      <span class="iconfont icon-getmore-icon"></span>
    </router-link>
    <!--<router-link tag="div" class="user_list " to="/suggest">
      <span class="iconfont icon-qu"></span>
      <span>问题反馈</span>
      <span class="iconfont icon-getmore-icon"></span>
    </router-link>-->
    <router-link tag="div" class="user_list " to="/about_us">
      <span class="iconfont icon-about-icon"></span>
      <span>关于我们</span>
      <span class="iconfont icon-getmore-icon"></span>
    </router-link>

    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    computed:{
      userData(){
        return this.$store.getters.getUser
      }
    },

    mounted(){

    }
  }
</script>

<style scoped>
  .user_img {
    width: 100%;
    height: 400px;
    background-image: url("../../common/image/ding.png");
    background-size: cover;
    text-align: center;
    position: relative;
    padding-top: 75px;
  }

  .set {
    position: absolute;
    top: 20px;
    right: 30px;
  }

  .set span {
    font-size: 40px;
    color: #c5c5c7;
  }

  .user_img .img_grp {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 0 auto;
    /*border: solid 1px #c5c5c7;*/
    overflow: hidden;
  }

  .user_img p {
    margin-bottom: 12px;
    font-size: 36px;
    color: white;
  }

  .user_img p:nth-of-type(2) {
    margin-top: 0;
    font-size: 24px;
  }

  .user_list {
    width: 100%;
    background: white;
    height: 100px;
    padding: 0 35px;
    line-height: 100px;
    border-bottom: solid 1px #ececec;

  }

  .user_list span:nth-of-type(2){
    font-size: 30px;
  }

  .new_num {
    background: #ff6d00;
    color: white;
    font-size: 24px;
    border-radius: 18px;
    /*!*display: block;*!*/
    float: right;
    padding: 0 12px;
    height: 36px;
    line-height: 37px;
    margin: 30px 15px;
  }

  .iconfont {
    font-size: 40px;
  }

  .icon-mypage-icon {
    color: #78b8ff;
  }

  .icon-newscenter {
    color: #d87777;
  }

  .icon-mytest-icon {
    color: #78cbb5;
  }

  .icon-follow {
    color: #eaad76;
  }

  .icon-qu {
    color: #e5a2eb;
    font-size:36px;
  }

  .icon-about-icon {
    color: #82ddea;
    font-size: 42px;
  }

  .icon-getmore-icon {
    float: right;
    color: #c5c5c7;
  }

  .user_list:nth-of-type(5) {
    margin-bottom: 20px;
  }
</style>
